package cn.edu.zju.gis.disasterBE.sever.dao;

import cn.edu.zju.gis.disasterBE.sever.entity.disasterQuery;
import cn.edu.zju.gis.disasterBE.sever.mapper.disasterMapper;

import cn.edu.zju.gis.disasterBE.sever.Utils.MybatisUtils;

import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class DisasterDao {

    public static List<disasterQuery> selectAll(){
        SqlSession session = MybatisUtils.getSqlSession();
        disasterMapper dm = session.getMapper(disasterMapper.class);
        List<disasterQuery> res = dm.selectAll();
        session.close();
        return res;
    }
}
